#ifndef REMINDITEM_H
#define REMINDITEM_H

#include <QWidget>
#include <QDate>
#include "remind.h"
#include "sql.h"
namespace Ui {
class RemindItem;
}

class RemindItem : public QWidget
{
    Q_OBJECT

public:
    explicit RemindItem(QWidget *parent = nullptr,long id = 0,QString name = "无",QString imgURL = "loadfailed.jpg",long amount = 0,QDate time = QDate());
    void update(Remind remind);
    ~RemindItem();
signals:
    void deleteSignal();
private:
    Ui::RemindItem *ui;
    Remind remind;
    SQL* sql = new SQL();
};

#endif // REMINDITEM_H
